#include <stdio.h>

int main(int argc,char *argv[])
{
    char str[100];//"hello1"
    char ktr[2][100];//"hello1" "hello2"
    char ptr[2][2][100];//"hello3" "hello4" "hello5" "hello6"
    
    printf("Please input str:\n");
    scanf("%s",str);//首元素地址

    printf("str = %s\n",str);

    printf("Please input ktr:\n");

    for(int i = 0; i < 2; i++)
    {
        //scanf("%s",*(ktr + i));
        scanf("%s",ktr [i]);//*(ktr+i)
    }

    for(int i = 0; i < 2; i++)
    {
        printf("ktr[%d] = %s\n", i, *(ktr + i));//ktr[i]
    }

    for(int i = 0; i < 2; i++)
    {
        for(int j = 0; j < 2; j++)
        {
            scanf("%s",*(*(ptr+i)+j));//ptr[i][j]
        }
    }

    for(int i = 0; i < 2; i++)
    {
        for(int j = 0; j < 2; j++)
        {
            printf("ptr = %s\n",*(*(ptr+i)+j));//ptr[i][j]
        }
    }
}
